<template><div><h1 id="删除node-modules" tabindex="-1"><a class="header-anchor" href="#删除node-modules" aria-hidden="true">#</a> 删除node_modules</h1>
<h3 id="大批量删除" tabindex="-1"><a class="header-anchor" href="#大批量删除" aria-hidden="true">#</a> 大批量删除</h3>
<div class="language-javascript ext-js line-numbers-mode"><pre v-pre class="language-javascript"><code>npm i @mctech<span class="token operator">/</span>cleannms
命令行：cleannms
效果：把当前文件夹以及下级的node_modules删掉，并显示占用的磁盘大小。
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="单个文件夹删除" tabindex="-1"><a class="header-anchor" href="#单个文件夹删除" aria-hidden="true">#</a> 单个文件夹删除</h3>
<div class="language-javascript ext-js line-numbers-mode"><pre v-pre class="language-javascript"><code><span class="token comment">// 全局安装 rimraf 插件</span>
npm install rimraf <span class="token operator">-</span>g
<span class="token comment">//在所属文件夹下使用cmd指令下，进入所需删除的node_modules文件夹的位置，再输入指令</span>
imraf node_modules
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></div></template>


